/*
 * Utility.h
 *
 *  Created on: 2015年5月18日
 *      Author: chuanjiang.zh@qq.com
 */

#ifndef UTILITY_H_
#define UTILITY_H_

#include <string>
#include <vector>

class Utility
{
public:
    Utility();
    virtual ~Utility();

	static std::string getHostAddr();

	static size_t getHostAddr(std::vector< std::string >& addrList);

    static std::string findFile(const std::string paths[], int size, const char* filename);

    static std::string findExeFile(const std::string paths[], int size, const char* filename);

    enum StreamDir
    {
        SENDRECV,
        SENDONLY,
        RECVONLY
    };


};

#endif /* UTILITY_H_ */
